package com.dyypdadmin.service.impl;


import com.dyypdadmin.dao.ServiceRecordsDetailsDao;
import com.dyypdadmin.pojo.vo.ServiceRecordsDetails;
import com.dyypdadmin.service.ServiceRecordsDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ServiceRecordsDetailsServiceImpl implements ServiceRecordsDetailsService {
    @Autowired
    private ServiceRecordsDetailsDao serviceRecordsDetailsDao;
    @Override
    public List<ServiceRecordsDetails> getAllDetails() {
        return serviceRecordsDetailsDao.getAllDetails();
    }

    @Override
    public List<ServiceRecordsDetails> getAllDetailsByUserId(Integer user_id) {
        return serviceRecordsDetailsDao.getAllDetailsByUserId(user_id);
    }
}
